From 6ce0302486f4d0952880bedf592d190306c198bc Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Wed, 9 Jul 2025 19:11:43 +0200 Subject: [PATCH] fix: implicit hydration will not abort synchronization should avoid constant sync/abort loop for people having many files Signed-off-by: Matthieu Gallien --- src/gui/folder.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 41772fa70..b1c94025b 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1598,19 +1598,19 @@ void Folder::slotWatcherUnreliable(const QString &message) void Folder::slotHydrationStarts() { - // Abort any running full sync run and reschedule - if (_engine->isSyncRunning()) { - setSilenceErrorsUntilNextSync(true); - slotTerminateSync(); - scheduleThisFolderSoon(); - // TODO: This sets the sync state to AbortRequested on done, we don't want that - } - - // Let everyone know we're syncing - _syncResult.reset(); - _syncResult.setStatus(SyncResult::SyncRunning); - emit syncStarted(); - emit syncStateChange(); + // // Abort any running full sync run and reschedule + // if (_engine->isSyncRunning()) { + // setSilenceErrorsUntilNextSync(true); + // slotTerminateSync(); + // scheduleThisFolderSoon(); + // // TODO: This sets the sync state to AbortRequested on done, we don't want that + // } + + // // Let everyone know we're syncing + // _syncResult.reset(); + // _syncResult.setStatus(SyncResult::SyncRunning); + // emit syncStarted(); + // emit syncStateChange(); } void Folder::slotHydrationDone() -- 2.30.2